<%@ page contentType="text/html;charset=utf-8"%>
<%@ page
	import="java.io.*, java.sql.*, java.util.*, java.text.*, napal.*, util.*, napal.*,java.util.ArrayList
	"%>
<%@ page import="org.apache.ibatis.*"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.util.Enumeration" %>
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
<%
	request.setCharacterEncoding("utf-8");
String cmd = request.getParameter("cmd");
%>
<%@ include file="./Header.jsp"%>
			</td>
		</TR>
		<TR HEIGHT="100">
		<td>
		
		
<a href="giguan.jsp" class="btn btn-link btn-small">기자재관리<br></a>
> <a href="Model.jsp" class="btn btn-link btn-small"> 모델관리 </a> > 새로등록<br><br><br>
<%
	String mng = (String)session.getAttribute("managerID");

 	if(mng==null){ %>
	<script language=javascript>
				self.window.alert("권한이 없습니다.");
				location.href="Main.jsp?";
			</script>
<%}
 
 	if ("등록하기".equals(cmd)) {
 		String cname = request.getParameter("cname");
 		String mname = request.getParameter("mname");
 		
 		RentalHome.insertmc(cname, mname);
 	}
 	%>
<table class="table table-bordered">

							<form method="post">
						<tr>
			<td>카테고리명</td>
			<td><input type="text" name="cname"  placeholder="Text input"></td>
		</tr>
		<tr>
			<td>모델명</td>
			<td><input type="text"  name="mname" placeholder="Text input"></td>
		<!--</tr>
		<Tr>
		  <td>이미지</td>
		<td><input type="file" name="image"></td>
		</Tr>-->
	</table>
						
				
<INPUT style="width: 70;" name="cmd" class="btn btn-inverse" TYPE="submit" VALUE="등록하기"> 
		</form>
	</TD>
</TR>

<TR HEIGHT="100">
<TD><%@ include file="./bottom.jsp"%></TD> 
</TR>
</TABLE>
</body>
</html>